﻿<?xml version="1.0" encoding="utf-8" ?> 
<SyntaxDefinition name="HMMM"
        xmlns="http://icsharpcode.net/sharpdevelop/syntaxdefinition/2008">
    <Color name="Comment" foreground="Green" />
    <Color name="Command" foreground="Blue" />
    <!-- This is the main ruleset. -->
    <RuleSet>
        <Span color="Comment" begin="#" />
        <Keywords fontWeight="bold" foreground="#FF8181F7">
            <Word>halt</Word>
            <Word>read</Word>
            <Word>write</Word>
            <Word>nop</Word>
            <Word>setn</Word>
            <Word>addn</Word>
            <Word>copy</Word>
            <Word>add</Word>
            <Word>sub</Word>
            <Word>neg</Word>
            <Word>mul</Word>
            <Word>div</Word>
            <Word>mod</Word>
            <Word>jumpn</Word>
            <Word>jumpr</Word>
            <Word>jeqzn</Word>
            <Word>jnezn</Word>
            <Word>mod</Word>
            <Word>jgtzn</Word>
            <Word>jltzn</Word>
            <Word>calln</Word>
            <Word>loadn</Word>
            <Word>storen</Word>
            <Word>loadr</Word>
            <Word>storer</Word>
            <!-- ... -->
        </Keywords>
        
        <!-- Digits -->
        <Rule foreground="#FFF781F3">
        \s-?\d{1,}
        </Rule>
        <!--Register-->
        <Rule foreground ="#FFFF0040">
            r\d{1,}
        </Rule> 
      <!--Instruction Number-->
       <Rule foreground ="#FFF4FA58">
            ^\d{1,}\s
        </Rule>
      <!--,-->
      <Rule foreground ="#FFA947DE">,</Rule>
    </RuleSet>
</SyntaxDefinition>